package com.jarchie.androiddev.ui.item

import androidx.appcompat.widget.AppCompatImageView
import androidx.recyclerview.widget.RecyclerView
import com.jarchie.androiddev.R

class TestDataItem(data: Array<Int>) : CommonDataItem<Array<Int>, RecyclerView.ViewHolder>(data) {
    override fun onBindData(holder: RecyclerView.ViewHolder, position: Int) {
        val imageview = holder.itemView.findViewById<AppCompatImageView>(R.id.image)
        imageview.setImageResource(R.drawable.test)
    }

    override fun getItemLayoutRes(): Int {
        return R.layout.layout_feed_type_test
    }

}